<?php

namespace app\common\model;

use think\Model;

class ExamStudent extends Model
{
    //
    public function QbankName()
    {
        return $this->belongsTo('QbankName', 'exam_type', 'bid');
    }
    public function User(){
        return $this->belongsTo('User','uid','id');
    }
    public function Examlist(){
        return $this->hasOne('Exam_list','exam_id','exam_id');
    }
}
